  <?php	
	$linkDefault = "";
	$linkShop = "";	
	$id = 1;
	if (isset($_SESSION["theme"]))
	{
		$id = $_SESSION["theme"];
	}
	else 
		if (isset($_COOKIE["theme"]))
		{
			$id = $_COOKIE["theme"];
		}
	
	$boxTheme = array(
				'<td width="10%" align="right">
                	<img src="image/blue.png" name="imgTheme" width="15" height="15" title="Blue" alt="Blue" onclick="funcChangeTheme(1)" />
                </td>',
				'<td width="9%" align="right">
               	  <img src="image/green.png" name="imgTheme" width="15" height="15" title="Green" alt="Green" onclick="funcChangeTheme(2)" />
                </td>',
               ' <td width="8%" align="right">
                	<img src="image/orange.png" name="imgTheme"  width="15" height="15" title="Orange" alt="Orange" onclick="funcChangeTheme(3)" />
                </td>',
                '<td width="8%" align="right">
                	<img src="image/plum.png" name="imgTheme" width="15" height="15" title="Plum.png" alt="Plum.png" onclick="funcChangeTheme(4)" />
                </td>',
               '<td width="19%" align="left">
                	<img src="image/black.png" name="imgTheme"  width="15" height="15" title="Black" alt="Black" onclick="funcChangeTheme(5)" />
                </td>');
				
	switch ($id)
	{		
		case 1:
			$boxTheme[0] = '<td width="10%" align="right">
                	<img src="image/blue.png" name="imgTheme" class="border-theme" width="15" height="15" title="Blue" alt="Blue" onclick="funcChangeTheme(1)" />
                </td>';
			break;
		case 2:
			$boxTheme[1] = '<td width="9%" align="right">
               	  <img src="image/green.png" name="imgTheme" class="border-theme" width="15" height="15" title="Green" alt="Green" onclick="funcChangeTheme(2)" />
                </td>';
			break;
		case 3:
			$boxTheme[2] = ' <td width="8%" align="right">
                	<img src="image/orange.png" name="imgTheme" class="border-theme"  width="15" height="15" title="Orange" alt="Orange" onclick="funcChangeTheme(3)" />
                </td>';
			break;
		case 4:
			$boxTheme[3] ='<td width="8%" align="right">
                	<img src="image/plum.png" name="imgTheme" class="border-theme" width="15" height="15" title="Plum.png" alt="Plum.png" onclick="funcChangeTheme(4)" />
                </td>';
			break;
		case 5:
			$boxTheme[4] = '<td width="19%" align="left">
                	<img src="image/black.png" name="imgTheme" class="border-theme"  width="15" height="15" title="Black" alt="Black" onclick="funcChangeTheme(5)" />
                </td>';
			break;	
	}
	$tableBox = "";
	for($i = 0; $i < 5; $i++)
	{
		$tableBox .= $boxTheme[$i];
	}
		
		
?>
  
  <div class="box-wrapper-right-sidebar" id="kq_xl_theme">
    		<table width="100%" border="0" cellspacing="3" cellpadding="0">
              <tr>
                <td colspan="6" align="center">&nbsp;</td>
              </tr>
              <tr>
                <td width="46%" align="right">
               	  <span class="text-color-normal-1">Chọn theme:</span>
                </td>
                <?php echo $tableBox; ?>
              </tr>
              <tr>
                <td height="14" colspan="6">&nbsp;</td>
              </tr>
            </table>

            <div class="seperator-item-box-right-sidebar"></div>
      </div> 